import './App.css';
import { useState } from 'react';
import { NavLink, Routes, Route, useRoutes } from 'react-router-dom';
import routesConfig from './utils/routes';
import { GlobalProvider } from './contexts/GlobalContext';

function App() {
  const routes = useRoutes(routesConfig);

  return <GlobalProvider>{routes}</GlobalProvider>;
}
export default App;
